package com.heima;

import lombok.Data;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.Date;

/**
 * @author itheima
 * @since 2023-01-10
 */
@Data
// @Document注解代表的是，当前实体类和MongoDB中哪个表进行映射
@Document("th_heima")
public class Heima {
    private String id;
    private String name;
    private Integer age;
    private Date createdTime;
}
